import Vue from 'vue';
import Router from 'vue-router';

// 首页
import home from '@/components/home';
import search from '@/components/homelist/search';
import QRcode from '@/components/homelist/QRcode';
import hot from '@/components/homelist/hot';
//登录
import login from '@/components/login/login';
import forgetpassword from '@/components/login/forgetpassword';

//tabbar
import bookrack from '@/components/bookrack/bookrack';
import schoolroom from '@/components/schoolroom/schoolroom';
import discover from '@/components/discover/discover';
import myself from '@/components/myself/myself';

//个人中心
import set from '@/components/myself/seting/set';
import nickname from '@/components/myself/seting/nickname';
import changepsw from '@/components/myself/seting/changepsw';
import abutus from '@/components/myself/seting/abutus';

// 个人中心-设置
import addressbook from '@/components/myself/setinglist/addressbook';
import addressbookDetails from '@/components/myself/setinglist/addressbookDetails';
import resource from '@/components/myself/setinglist/resource';
import message from '@/components/myself/setinglist/message';
import collect from '@/components/myself/setinglist/collect';
import readinglog from '@/components/myself/setinglist/readinglog';
import sysmsgdetails from '@/components/myself/setinglist/sysmsgdetails';
import orgmsgdetails from '@/components/myself/setinglist/orgmsgdetails';

//首页图书
import bookstorage from '@/components/homepage/bookstorage';

//首页-图书-二级图书
import booklist from '@/components/homepage/bookstoragelist/booksubclass/booklist';

//首页图书详情
import bookcontent from '@/components/homepage/bookstoragelist/booksubclass/bookcontent';
import reading from '@/components/homepage/bookstoragelist/booksubclass/reading';
import readingPdf from '@/components/homepage/bookstoragelist/booksubclass/readingPdf';

//首页期刊
import periodicalclass from '@/components/homepage/periodicalclass';
//首页期刊-列表
import periodicallist from '@/components/homepage/periodicalclass/content/periodicallist';
//期刊内容
import percontent from '@/components/homepage/periodicalclass/content/percontent';

//首页报纸-分类
import newspaperclass from '@/components/homepage/newspaperclass';
//首页报纸-分类-详情
import newspapercontent from '@/components/homepage/newspaperclass/newspapercontent';
import newscontentlist from '@/components/homepage/newspaperclass/newscontentlist';


//首页视频-分类
import videoclass from '@/components/homepage/videoclass';
import videolist from '@/components/homepage/videoclass/videolist/videolist';
import videocontent from '@/components/homepage/videoclass/videolist/videocontent/videocontent';

import musiclist from '@/components/homepage/videoclass/musiclist/musiclist';
import musiccontent from '@/components/homepage/videoclass/musiclist/musiccontent/musiccontent';

//首页阅读-阅读
import readclass from '@/components/homepage/readclass/readclass';
import readcontent from '@/components/homepage/readclass/readcontent';

//发现-更多
import clubdetails from '@/components/discover/discoverlist/clubdetails';
import addbooks from '@/components/discover/discoverlist/addbooks';
import activitycontent from '@/components/discover/discoverlist/activitycontent';
import discoverbookslist from '@/components/discover/discoverlist/discoverbookslist';

Vue.use(Router)

export default new Router({
	routes: [{
			path: '/',
			name: 'login',
			component: login
		},
		{
			path: '/forgetpassword',
			name: 'forgetpassword',
			component: forgetpassword
		},
		{
			path: '/home',
			name: 'home',
			component: home
		},
		{
			path: '/myself',
			name: 'myself',
			component: myself
		},
		{
			path: '/set',
			name: 'set',
			component: set
		},
		{
			path: '/nickname',
			name: 'nickname',
			component: nickname
		},
		{
			path: '/changepsw',
			name: 'changepsw',
			component: changepsw
		},
		{
			path: '/abutus',
			name: 'abutus',
			component: abutus
		},
		{
			path: '/addressbook',
			name: 'addressbook',
			component: addressbook
		},
		{
			path: '/resource',
			name: 'resource',
			component: resource
		},
		// 个人中心消息
		{
			path: '/message',
			name: 'message',
			component: message,
		},
		{
			path: 'sysmsgdetails',
			name: 'sysmsgdetails',
			component: sysmsgdetails
		},
		{
			path: 'orgmsgdetails',
			name: 'orgmsgdetails',
			component: orgmsgdetails
		},
		{
			path: '/collect',
			name: 'collect',
			component: collect
		},
		{
			path: '/bookrack',
			name: 'bookrack',
			component: bookrack
		},
		{
			path: '/schoolroom',
			name: 'schoolroom',
			component: schoolroom
		},
		{
			path: '/discover',
			name: 'discover',
			component: discover
		},
		{
			path: '/search',
			name: 'search',
			component: search
		},
		{
			path: '/QRcode',
			name: 'QRcode',
			component: QRcode
		},
		{
			path: '/hot',
			name: 'hot',
			component: hot
		},
		{
			path: '/addressbookDetails',
			name: 'addressbookDetails',
			component: addressbookDetails
		},
		{
			path: '/readinglog',
			name: 'readinglog',
			component: readinglog
		},
		{
			path: '/bookstorage',
			name: 'bookstorage',
			component: bookstorage
		},
		{
			path: '/booklist',
			name: 'booklist',
			component: booklist
		},
		{
			path: '/bookcontent',
			name: 'bookcontent',
			component: bookcontent
		},
		{
			path: '/periodicalclass',
			name: 'periodicalclass',
			component: periodicalclass
		},
		{
			path: '/periodicallist/:perdata',
			name: 'periodicallist',
			component: periodicallist
		},
		{
			path: '/percontent/:period',
			name: 'percontent',
			component: percontent
		},
		{
			path: '/newspaperclass',
			name: 'newspaperclass',
			component: newspaperclass
		},
		{
			path: '/newspapercontent/:parperdata',
			name: 'newspapercontent',
			component: newspapercontent
		},
		{
			path: '/newscontentlist/:parperid',
			name: 'newscontentlist',
			component: newscontentlist
		},
		{
			path: '/videoclass',
			name: 'videoclass',
			component: videoclass
		},
		{
			path: '/videolist',
			name: 'videolist',
			component: videolist
		},
		{
			path: '/videocontent',
			name: 'videocontent',
			component: videocontent
		},
		{
			path: '/musiclist',
			name: 'musiclist',
			component: musiclist
		},
		{
			path: '/musiccontent',
			name: 'musiccontent',
			component: musiccontent
		},
		{
			path: '/readclass',
			name: 'readclass',
			component: readclass
		},
		{
			path: '/readcontent/:readdata',
			name: 'readcontent',
			component: readcontent
		},
		{
			path: '/clubdetails',
			name: 'clubdetails',
			component: clubdetails
		},
		{
			path: '/addbooks',
			name: 'addbooks',
			component: addbooks
		},
		{
			path: '/discoverbookslist',
			name: 'discoverbookslist',
			component: discoverbookslist,
		},
		{
			path: '/activitycontent',
			name: 'activityconten',
			component: activitycontent,
			props: true
		},
		{
			path: '/reading',
			name: 'reading',
			component: reading
		},
		{
			path: '/readingPdf',
			name: 'readingPdf',
			component: readingPdf
		},

	]
})